<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>商城搜索</title>
    <script src="/drclothes/Public/js/jquery.min.js"></script>    
    <script src="/drclothes/Public/js/bootstrap.min.js"></script>  
    <link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/animate.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/style.css" rel="stylesheet">
</head>
<body>

<div class="container-fluid background9">
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column">
            <?php
 if(!isset($_SESSION['username'])){ echo'<h6><a href="/drclothes/index.php"  style="color:#999;"><font class="glyphicon glyphicon-home">首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/drclothes/index.php/home/form/login"  style="color:#999;"><font>登录</font></a>&nbsp;|&nbsp;
                        <a href="/drclothes/index.php/home/form/register"  style="color:#999;"><font>注册</font></a></h6>'; } else{ $username= $_SESSION['username']; $userrank= $_SESSION['userrank']; echo "<h6><font style='float:right;'>".$userrank."&nbsp;".$username."&nbsp;&nbsp;
                        <a href='/drclothes/index.php/home/form/logout' style='color:#999;'>退出</font>
                        <a href='/drclothes/index.php' style='color:#999;'><font class='glyphicon glyphicon-home'>首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </h6>"; } ?>
        </div>
    </div>
</div>
</div>
<div class="container-fluid">
    <div class="container">
		<div class="row clearfix">
            <div class="col-xs-12 column" align="center">
                <img src="/drclothes/Public/image/logo.png" class="img-responsive margin15" />
            </div>
            <div class="col-xs-offset-4 col-xs-4 column" align="center" style="padding-top:13px;">
                <form role="search" class="form-horizontal" action="/drclothes/index.php/home/form/searchresult" method="get" style="margin-bottom:0px;">
                    <div class="input-group">
                        <input id="query" name="name" type="text" placeholder="搜索 商品..." class="form-control" required />
                        <span class="input-group-btn">
                            <button class="btn button2" type="submit" style="top:0px;">搜索</button>
                        </span>
                    </div>
                </form>
            </div>
		</div>
	</div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column padding3 padding1" align="center">
            <a href="/drclothes/index.php">首页</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=">全部</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=新">新款</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=促销">促销</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=男">男士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=女">女士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/cart">购物车</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/orderlist">订单</a>
        </div>       
    </div>
</div>

<div class="container">
    <div class="col-md-12 column margin4 padding1" style="min-height:800px;" align="center">
        <?php if(is_array($list)): $k = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "$empty" ;else: foreach($__LIST__ as $key=>$searchitem): $mod = ($k % 2 );++$k;?><!--volist 说明：name-传过来的结果集标识 result id-二级索引 key：索引名；未定义时变量为$i empty-result 结果集为空时的内容，可在Controller 中进行设置 -->
            <div class="col-xs-6" id="search_<?php echo ($searchitem["k"]); ?>">
                <div class="thumbnail" style="min-height:400px;">
                    <a href="/drclothes/index.php/home/index/drclothes?id=<?php echo ($searchitem["id"]); ?>" target="_blank">
                    <img src="/drclothes/Public/<?php echo ($searchitem["img"]); ?>" alt="<?php echo ($searchitem["name"]); ?>">
                    </a>
                    <div class="caption">
                        <a href="/drclothes/index.php/home/index/drclothes?id=<?php echo ($searchitem["id"]); ?>" target="_blank"><h4 style="color:#333;"><?php echo ($searchitem["name"]); ?></h4></a>
                        <p>￥<?php echo ($searchitem["price"]); ?></p>
                    </div>
                </div>
            </div><?php endforeach; endif; else: echo "$empty" ;endif; ?>
    </div>
</div>

<div class="container-fluid">
<div class="container">
	<div class="row clearfix" align="center">
			<div class="col-xs-12 column color1 padding3">
		       	<img alt="" src="/drclothes/Public/image/logo.png" class="img-responsive" />
		    </div>
			<h5 style="margin-top:140px;">Drclothes 辽ICP备123456789号</h5>
		</div>
	</div>
</div>	
</div>
</body>
</html>